package com.xzx.framework.util.http;


import java.io.IOException;

import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.protocol.HttpContext;


/**
 * HTTP请求过滤器，在执行请求之前拦截HttpRequest 和 HttpContext；
 * @author wei
 * @time 2015年11月1日 下午10:07:19
 */
public class HttpRequestInterceptor implements org.apache.http.HttpRequestInterceptor {
	private static HttpRequestInterceptor instance = null;
	
	private HttpRequestInterceptor(){}
	
	public static HttpRequestInterceptor getInstance(){
		if(instance == null) {
			synchronized (HttpRequestInterceptor.class) {
				if(instance == null) {
					instance = new HttpRequestInterceptor();
				}
			}
		}
		
		return instance;
	}
	
	
	public void process(HttpRequest request, HttpContext context) throws HttpException, IOException {
		
	}
}
